/*
 * @Author: 1453937336@qq.com 1453937336@qq.com
 * @Date: 2024-06-12 11:37:13
 * @LastEditors: 1453937336@qq.com 1453937336@qq.com
 * @LastEditTime: 2024-06-12 12:13:13
 * @FilePath: \itforce-hris\src\store\modules\user.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { changeTheme } from '@/utils/auth'
import store from '..';
import { Session } from '@/utils/storage';

const state: any = {
    theme: 'theme1'
};

const mutations: any = {
    USER_THEME(state: any, theme: string) {
        state.theme = theme;
        Session.set("USER_THEME", theme);
        changeTheme(theme);
    },
};
const actions = {};

export default {
    state,
    mutations,
    actions
}